﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Microsoft.DirectX.DirectDraw;

namespace gametest
{
    public partial class MainForm : Form
    {
        protected DxInitGraphics g = null;
        public MainForm()
        {
            InitializeComponent();
            this.MaximumSize = this.MinimumSize = this.ClientSize;
            this.Show();
            this.Cursor.Dispose();
      //      createSurfaces();
            new GameLogic(this);
 //           System.Threading.Thread.Sleep(10000);
        }


        //private void createSurfaces()
        //{
        //    g = new DxInitGraphics(this);
        //    g.RenderSurface.ColorFill(System.Drawing.Color.Blue);
        //    DxImageObject image = new DxImageObject("Images\\background.jpg", BitmapType.SOLID, -1, g.DDDevice);
        //    image.DrawBitmap(g.RenderSurface, 0, 0);
        //    g.Flip();
        //}
    }
}
